// import { queryConsumerCode, queryPretime, queryStoreDetail, queryStoreOptionList } from '@/services/store';
import { isEmpty } from '@/utils/common';

export default {
  namespace: 'order',
  state: {
    seatNum: 1,//默认1
    bespeakStartTime: '',
    // createOrderId: '',
  },

  effects: {
  },

  reducers: {
    /* 保存購物車列表 */
    saveSeatNum(state: any, action: any) {
      return {
        ...state,
        seatNum: action.payload,
      };
    },

    saveBespeakStartTime(state: any, action: any) {
      return {
        ...state,
        bespeakStartTime: action.paylaod
      };
    },
    // 保存當前創建的訂單號
    // saveCreateOrderId(state: any, action: any) {
    //   console.log('到這個地方保存orderId', action.payload)
    //   return {
    //     ...state,
    //     createOrderId: action.payload
    //   }
    // },
  },
}